<template>
	<view>

		<view style="padding: 20upx;background-color: #FFFFFF;">

			<scroll-view scroll-y style="height:100%">
				<view style="text-align: center;font-weight: bold; margin-bottom: 20rpx;">
					{{protocol.title||""}}
				</view>
				<view style="background-color: #fff;">
					<rich-text :nodes="protocol.content" style="white-space: pre-wrap;"></rich-text>
				</view>

			</scroll-view>

		</view>
		<u-toast ref="utoast"></u-toast>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				protocol: {},
			}
		},
		onLoad() {
			this.getContract()
		},
		methods: {
			getContract(contracId, url) {
				this.$get({
					url: `${this.$Utils.ApiUrl}/protocols/user_protocol/latest`,
					data: {

					}
				}).then(res => {
					this.protocol = res;
					console.log(res)
				})

			},
		}
	}
</script>

<style>
	page{
		background-color: #fff;
	}
</style>